package net.maku.audit.login.facade;

import net.maku.audit.api.facade.SysLogLoginFacade;
import net.maku.audit.login.service.SysLogLoginService;
import org.springframework.stereotype.Component;

@Component
public class SysLogLoginFacadeImpl implements SysLogLoginFacade {

    private final SysLogLoginService sysLogLoginService;

    public SysLogLoginFacadeImpl(SysLogLoginService sysLogLoginService) {
        this.sysLogLoginService = sysLogLoginService;
    }

    @Override
    public void save(String username, Integer status, Integer operation, String ip, String userAgent) {
        sysLogLoginService.save(username,status,operation,ip,userAgent);
    }
}
